home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 4841 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.2 KB

  1. Path: news1.h1.usa.pipeline.com!usenet
  2. From: grantp@usa.pipeline.com(Pete)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Visual C++ and DLLs
  5. Date: 1 Feb 1996 09:37:09 GMT
  6. Organization: Kalevi, Inc.
  7. Message-ID: <4eq1k5$24g@news1.usa.pipeline.com>
  8. NNTP-Posting-Host: pipe10.h1.usa.pipeline.com
  9. X-PipeUser: grantp
  10. X-PipeHub: usa.pipeline.com
  11. X-PipeGCOS: (Pete)
  12. X-Newsreader: Pipeline USA v3.3.0
  13.  
  14. On Feb 01, 1996 03:08:31 in article <Visual C++ and DLLs>, 'KSIAS@msn.com
  15. (Ken Sias)' wrote: 
  16.  
  17.  
  18. >I have a question concerning Visual C++ and DLL....I am using Visual  
  19. >C++ 4.0 and I create a new Project Workspace and select Application  
  20. >DLL.  I create a resource - a dialog and then through the Class  
  21. >Wizard create a class.  I then build the DLL.  Then I create a new  
  22. >Project Workspace and select Application - Exe.  I then link the DLL  
  23. >in the settings link and get an invalid file error - corrupt header.  
  24.  
  25. What are you trying to link?  The DLL?  That's a no-no. 
  26.  
  27. When you create the DLL, an import library file, .LIB, is created. 
  28. That's the file you link to your main program -- use Insert | 
  29. Files into project.  The DLL itself isn't "linked" until run time. 
  30.   
  31. -- 
  32. Pete Grant 
  33. Kalevi, Inc. 
  34. Object Oriented Software Development
  35.